/*
 * @Author: fishroom
 * @Date: 2022-09-29 11:45:51
 * @LastEditTime: 2022-09-30 16:23:49
 * @FilePath: \koa-blog-backend\app\router\admindoc.js
 */
// 定义模型 可以公用 schema $ref
/**
 * @swagger
 * definitions:
 *   Login:
 *     required:
 *       - username
 *       - password
 *     properties:
 *       username:
 *         type: string
 *       password:
 *         type: string
 *       path:
 *         type: string
 */
/**
 * @swagger
 * /meng/Adminuser/add:
 *   get:
 *     summary: 添加用户
 *     description: 添加用户
 *     tags:
 *       - Admin
 *     parameters:
 *       - name: username
 *         in: query
 *         required: true
 *         description: 用户名称
 *         type: string
 *       - name: password
 *         in: query
 *         required: true
 *         description: 用户密码
 *         type: string
 *     responses:
 *       200:
 *         description: 成功
 */
/**
 * @swagger
 * /meng/Adminuser/list:
 *   get:
 *     summary: 获取管理员列表
 *     description: 获取管理员列表
 *     tags:
 *       - Admin
 *     responses:
 *       200:
 *         description: 成功
 */
/**
 * @swagger
 * /meng/Adminuser/updata:
 *   get:
 *     summary: 修改管理员
 *     description: 修改管理员
 *     tags:
 *       - Admin
 *     parameters:
 *       - name: id
 *         in: query
 *         required: true
 *         description: 用户id
 *         type: string
 *       - name: username
 *         in: query
 *         required: false
 *         description: 用户名称
 *         type: string
 *       - name: password
 *         in: query
 *         required: false
 *         description: 用户密码
 *         type: string
 *     responses:
 *       200:
 *         description: 成功
 */

// 定义模型 可以公用 schema $ref
/**
 * @swagger
 * definitions:
 *   Login:
 *     required:
 *       - username
 *       - password
 *     properties:
 *       username:
 *         type: string
 *       password:
 *         type: string
 *       path:
 *         type: string
 */

//  tags 可以理解成借口分类  parameters 参数
/**
 * @swagger
 * /meng/Adminuser/Login:
 *   post:
 *     description: 用户登入
 *     tags: [用户登入模块]
 *     produces:
 *       - application/json
 *     parameters:
 *       - name: username
 *         description: 用户名.
 *         in: formData
 *         required: true
 *         type: string
 *       - name: password
 *         description: 用户密码.
 *         in: formData
 *         required: true
 *         type: string
 *     responses:
 *       200:
 *         description: 登入成功
 *         schema:
 *           type: object
 *           $ref: '#/definitions/Login'
 *
 */
